package homework.test1;

public class Student extends Person{
    private String school; // 所在学校

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    // 获取信息的方法
    @Override
    public String getInfo() {
        return "Student[name=" + getName() + ", age=" + getAge() +
                ", birthday=" + getBirthday() + ", school=" + school + "]";
    }
}
